﻿using MangoMes.MVC.Commands;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;

namespace MangoMes.MVC.Controllers
{
    public class MessagesController : Controller
    {
        private readonly IpAddressesConfig _ipAddressesConfig;

        public MessagesController(IOptions<IpAddressesConfig> ipAddressesConfig)
        {
            _ipAddressesConfig = ipAddressesConfig.Value;
        }
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 物料产品分类 列表
        /// </summary>
        /// <returns></returns>
        public IActionResult ProductTypeShow()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 物料产品管理 列表
        /// </summary>
        /// <returns></returns>
        public IActionResult ProductmanageShow()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产领料 列表
        /// </summary>
        /// <returns></returns>
        public IActionResult PickingsLists()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产领料 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult PickingsCreates()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产领料 修改
        /// </summary>
        /// <returns></returns>
        public IActionResult PickingsUpds()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产退料 列表
        /// </summary>
        /// <returns></returns>
        public IActionResult StrippingLists()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产退料 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult StrippingCreate()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产退料 修改
        /// </summary>
        /// <returns></returns>
        public IActionResult StrippingUpdate()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产领料单行 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult PickingLineAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产退料单行 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult RejectionsLineAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 到货通知单 列表
        /// </summary>
        /// <returns></returns>
        public IActionResult ArrivalNoticesList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 到货通知单 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult ArrivalNoticesAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 到货通知单 修改
        /// </summary>
        /// <returns></returns>
        public IActionResult ArrivalNoticesUpds()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 到货通知单单行 新增
        /// </summary>
        /// <returns></returns>
        public IActionResult NoticelinesAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        

    }
}
